/** When your routing table is too long, you can split it into small modules **/

import Layout from '@/layout'

const systemRouter = {
    path: '/plantCheck',
    component: Layout,
    redirect: '/plantCheck/index',
    name: 'plantCheck',
    meta: {
        title: '设备点检',
        icon: 'table'
    },
    children: [

        {
            path: 'plantCheck',
            component: () =>
                import ('@/views/plant-check/plan'),
            name: 'plantCheck',
            meta: { title: '设备点检-点检计划' },

        },

        {
            path: 'edit/:id',
            component: () =>
                import ('@/views/plant-check/component/add-plan/index'),
            name: 'SystemManage',
            meta: { title: '设备点检-新增点检计划' }
        },
        {
            path: 'detail/:id',
            component: () =>
                import ('@/views/plant-check/component/add-plan/detail'),
            name: 'SystemManage',
            meta: { title: '设备点检-点检计划详情' }
        },
        {
            path: 'program',
            component: () =>
                import ('@/views/plant-check/program'),
            name: 'SystemManage',
            meta: { title: '设备点检-点检项管理' }
        },
        {
            path: 'record',
            component: () =>
                import ('@/views/plant-check/record'),
            name: 'SystemManage',
            meta: { title: '设备点检-点检记录' }
        },
        {
            path: 'recordDetail/:id',
            component: () =>
                import ('@/views/plant-check/component/addRecord/detail'),
            name: 'SystemManage',
            meta: { title: '设备点检-点检记录详情' }
        }
    ]
}
export default systemRouter